package org.mozhu.mboot.admin.system.group.service;

import org.mozhu.mboot.core.data.IBaseService;
import org.mozhu.mboot.admin.system.group.entity.UserGroupRelation;

import java.util.Set;

/**
 * 用户分组关系 - 业务层接口
 *
 * @author mozhu
 */
public interface UserGroupRelationService extends IBaseService<UserGroupRelation, Long> {

    void appendRelationToUser(Long groupId, Set<Long> userIds);

    Set<Long> findGroupIds(Long userId);

    /**
     * 获取可用的的分组编号列表
     */
    Set<Long> findAvailableGroupIds(Long userId);

}
